package com.guanglan.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * 作者: 光蓝Comet
 * Date: 2018-06-28 15:32
 * Description: 一句话说明这个类的作用
 * Since 1.0
 */
public class DateTimeUtil {

    private static final String YYYY_MM_DD = "yyyy-MM-dd";

    public static Date StringToDate(String date) throws ParseException {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(YYYY_MM_DD);
        return simpleDateFormat.parse(date);
    }
}
